package com.gzy.rpsm.property.service;

import com.gzy.rpsm.property.pojo.PageResult;
import com.gzy.rpsm.property.pojo.UnpaidOwner;
import com.gzy.rpsm.property.pojo.User;
import org.springframework.dao.DuplicateKeyException;

public interface UserService {
    User login(String account, String password);

    int insertUser(User user) throws DuplicateKeyException,Exception;

    PageResult<User> pageOfOwner(int current, int size);

    int changeUserStatus(User user);

    User queryById(int id);

    PageResult<UnpaidOwner> pageOfUnpaidOwnerList(Integer current, Integer size, Integer typeId);

}